// import io from './lib/socket.io/weapp.socket.io'
import cache from './api/cache'
import config from './config'
import { setLoginUrl } from './lib/page.auth'

global.regeneratorRuntime = require('./lib/regenerator/runtime-module')
// https://www.zzhignore.com
//  http://127.0.0.1:8888
App({
  globalData: {
    baseUrl: 'https://www.zzhignore.com',
    userCacheKey: "wxUserInfo",
    tokenKey: "token",
    token: "",
    key: "",
    user:{}
  },
  onLaunch(options) {
    setLoginUrl(config.url.login)
    // 初始化基本数据
  },

  onShow(options) {

  },

  onHide() {

  },

  onError(msg) {
    console.error("[APP ERROR]" + msg)
  }
})